
import Article from '../views/article/inde.vue'
 const router = [
     {
         path:"/",
         name:"home",
         meta:{
             title:"首页"
         },
         component:()=>import("../views/home/home.vue")
         
     },
     {
         path:"/article/list",
         name:"article",
         component:Article,
         redirect:{
             name:"articleType",
             params:{
                 type:"全部"
             }
         },
         children:[
            {
                path:"/article/list/:type",
                name:"articleType",
                meta:{
                    title:"文章列表"
                },
                component:()=>import('../views/article/article.vue')
                
            },
            {
               path:"/article/:_id",
               name:"blogDetalist",
               meta:{
                title:"文章详情"
            },
               component:()=>import('../views/article/detalis.vue')
               
           }
         ]
     }
    ,
     {
         path:"/project",
         name:"project",
         meta:{
            title:"项目"
        },
         component: ()=>import('../views/project/project.vue')  
     },{
         path:"/message",
         name:"message",
         meta:{
            title:"留言"
        },
         component: ()=>import('../views/message/message.vue') 
     }
 ]

 export default router;

 